// actions
import { INCREAMENT, DECREAMENT } from "../constant";
export const createIncreamentAction = (data) => ({ type: INCREAMENT, data });
export const createDecreamentAction = (data) => ({ type: DECREAMENT, data });
export const createIncreamentAsync = (data, time) => {
  console.log("触发了action!!!!");
  return (dispatch) => {
      console.log('dispatch',dispatch);
    setTimeout(() => {
      console.log("increamentAsync里面的");
      dispatch(createIncreamentAction(data));
    }, time);
  };
};
